package com.cxs.plan.mapper;

import com.cxs.plan.VO.FilterUserVO;
import com.cxs.plan.domain.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 11756
* @description 针对表【user(用户信息)】的数据库操作Mapper
* @createDate 2024-03-03 16:31:38
* @Entity com/cxs/plan.domain/entity.User
*/
public interface UserMapper extends BaseMapper<User> {

    User selectByUsername(String username);

    List<User> getUserList();

    @Select("select * from user where nick_name like concat('%',#{name},'%') or username like concat('%',#{name},'%')")
    List<FilterUserVO> selectListByName(String name);
}




